load("//tools:defaults.bzl", "ts_project")

package(default_visibility = ["//visibility:public"])

ts_project(
    name = "testing",
    testonly = True,
    srcs = glob(["**/*.ts"]),
    # Needed to ensure these files are picked up as CommonJS, as otherwise
    # the higher-level `package.json` from `src/package.json` is `type: module`.
    data = ["//src/cdk/schematics:package_json"],
    extends = "//src/cdk/schematics:tsconfig",
    tsconfig = "tsconfig.json",
    deps = [
        "//:node_modules/@angular-devkit/core",
        "//:node_modules/@angular-devkit/schematics",
        "//:node_modules/@angular/core",
        "//:node_modules/@bazel/runfiles",
        "//:node_modules/@schematics/angular",
        "//:node_modules/@types/fs-extra",
        "//:node_modules/@types/glob",
        "//:node_modules/@types/jasmine",
        "//:node_modules/@types/node",
        "//:node_modules/fs-extra",
        "//:node_modules/glob",
        "//:node_modules/jsonc-parser",
        "//:node_modules/rxjs",
    ],
)
